package com.yoyo.wauth.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Schema(description = "用户登录对象")
public class LoginBody {

    /**
     * 参考
     * 和 {@link  com.yoyo.common.log.enums.user.UserLoginType}
     */
    @Schema(description = "登录类型", required = true)
    private int type;

    /**
     * 账号
     */
    @Schema(description = "用户名", required = true)
    private String username;

    /**
     * 密码
     */
    @Schema(description = "用户密码", required = true)
    private String password;


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
